SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 54033: SAS® software might not read all the data when you use SAS/ACCESS® Interface to Greenplum with the READBUFF= and DBSLICEPARM= options

DetailsHotfixAboutRate It

When you use the SAS/ACCESS Interface to Greenplum option READBUFF= with any value over 10,000 in conjunction with option DBSLICEPARM=ALL, data might be lost during a Read operation. However, no error is shown.

If you set a value greater than 10,000 for READBUFF=, you must also set a driver option called "MaxRowsetSize" to match the value of READBUFF=. If you do not set this driver option when using values greater than 10,000, and you specify DBSLICEPARM= in the LIBNAME statement, the problem occurs. An inaccurate count of rows occurs in the final result. You can see the issue by tracing.


Code:

option sastrace=",,t,d" sastraceloc=saslog nostsuffix;

libname mygp greenplm server="server-name" database=db port=5432
                      user=user-ID password="password" schema=public
                      readbuff=32000 dbsliceparm=ALL;

data work.test1;
set mygp.bigdata;
run;

Log:

GREENPLUM:  Thread 3 contains 205 obs.
GREENPLUM:  Thread 2 contains 2041240 obs.
GREENPLUM:  Thread 1 contains 2040162 obs.
GREENPLUM:  Threaded read enabled. Number of threads created: 3
NOTE: There were 4081607 observations read from the data set
MYGP.BIGDATA.
NOTE: The data set WORK.TEST1 has 4081607 observations and 12 variables.

In the example above, the resulting data set should contain more than 6 million rows, but you can observe that this data set contains only a little more than 4 million. Tracing shows that "Thread 3" read only 205 observations.

You can circumvent this issue as follows:

  • By not using DBSLICEPARM=
  • By specifying a value less than 10,000 for READBUFF=
  • Or by setting the driver option MaxRowsetsize to be equal to the READBUFF value

Click the Hot Fix tab in this note to access the hot fix for this issue.

Applying the hot fix or upgrading your SAS software enables you to specify DBSLICEPARM= and READBUFF= values greater than 10,000. Setting READBUFF= in the LIBNAME statement automatically sets MaxRowsetSize to the same value as READBUFF= in the code passed on the connection. Setting READBUFF= to a value greater than 10,000 as a data set option automatically truncates the value to 10,000 and sets MaxRowsetSize to the same.

For more information about MaxRowsetSize, see SAS Note 47859: "READBUFF values that are set to more than 10,000 are truncated to 10,000 by DataDirect drivers."



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to GreenplumMicrosoft® Windows® for x649.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows 8 Enterprise 32-bit9.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows 8 Enterprise x649.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows 8 Pro 32-bit9.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows 8 Pro x649.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows 8.1 Enterprise 32-bit9.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows 8.1 Enterprise x649.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows 8.1 Pro9.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows 8.1 Pro 32-bit9.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows Server 20089.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows Server 2008 R29.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows Server 2008 for x649.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows Server 2012 Datacenter9.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows Server 2012 R2 Datacenter9.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows Server 2012 R2 Std9.3_M19.4_M29.3 TS1M29.4 TS1M2
Microsoft Windows Server 2012 Std9.3_M19.4_M29.3 TS1M29.4 TS1M2
Windows 7 Enterprise 32 bit9.3_M19.4_M29.3 TS1M29.4 TS1M2
Windows 7 Enterprise x649.3_M19.4_M29.3 TS1M29.4 TS1M2
Windows 7 Home Premium 32 bit9.3_M19.4_M29.3 TS1M29.4 TS1M2
Windows 7 Home Premium x649.3_M19.4_M29.3 TS1M29.4 TS1M2
Windows 7 Professional 32 bit9.3_M19.4_M29.3 TS1M29.4 TS1M2
Windows 7 Professional x649.3_M19.4_M29.3 TS1M29.4 TS1M2
Windows 7 Ultimate 32 bit9.3_M19.4_M29.3 TS1M29.4 TS1M2
Windows 7 Ultimate x649.3_M19.4_M29.3 TS1M29.4 TS1M2
64-bit Enabled AIX9.3_M19.4_M29.3 TS1M29.4 TS1M2
64-bit Enabled Solaris9.3_M19.4_M29.3 TS1M29.4 TS1M2
HP-UX IPF9.3_M19.4_M29.3 TS1M29.4 TS1M2
Linux9.3_M19.4_M29.3 TS1M29.4 TS1M2
Linux for x649.3_M19.4_M29.3 TS1M29.4 TS1M2
Solaris for x649.3_M19.4_M29.3 TS1M29.4 TS1M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.